<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      font-size: 0;
    }

    div span{
      font-size: 20px;
    }
    .text1{
      background-color: aqua;
    }

    .text2{
      background-color: blue;
    }

    .text3{
      background-color: burlywood;
    }
  </style>
</head>
<body>
  <div>
    <span class="text1">1111</span>
    <span class="text2">2222</span>
    <span class="text3">3333</span>
  </div>
</body>
</html>
<!-- 
元素之间的空白：换行或者空格都会产生空白
解决：给父元素设置font-size: 0;再给子元素设置font-size: ？？px;

-->